#ifndef ERRORS_H_
#define ERRORS_H_
using namespace std;

class CommunicationException: public exception {

};

class InvalidPortException: public CommunicationException {

};

class CantBindException: public CommunicationException {

};

class ConnectionException: public CommunicationException {

};

class CantListenException: public CommunicationException {

};

class AcceptingException: public CommunicationException {

};

class SendException: public CommunicationException {

};

class RecvException: public CommunicationException {

};

class ConnectionClosedException: public CommunicationException {

};

class CloseException: public CommunicationException {

};

class ShutdownException: public CommunicationException {

};

class UnknownMsg: public CommunicationException {

};

class InvalidAddressException: public CommunicationException {

};

class InvalidMsgFormat: public CommunicationException {

};

class InvalidParameters: public exception {

};

class CantLoginException: public exception {

};

class FileNotExist: public exception {

};

#endif /* ERRORS_H_ */
